Re: Unable to use COPY..FROM with NULL numeric fields - Mailing list pgsql-novice

From eric soroos
Subject Re: Unable to use COPY..FROM with NULL numeric fields
Date
Msg-id 80119228.1176211548@[4.42.179.151]
Whole thread Raw
In response to Unable to use COPY..FROM with NULL numeric fields  ("Nikh Nath" <nnath@westlakefinancial.com>)
List pgsql-novice
On Tue, 29 Oct 2002 16:34:55 -0800 in message
<E936C9C6709EF340B2B00D779FD59CF703BE2D2D@nowexchange.HANKEYINVESTMENTS.COM>,"Nikh Nath" <nnath@westlakefinancial.com>
wrote:
> Hi,
>
> I am trying to use the following command to import a file into pgsql.
>
>     COPY acct FROM '/home/megasys/acct.dmp.new' USING DELIMITERS
> '\t' WITH NULL AS '\N';
>
> I keep getting this error.
>
> ERROR:  copy: line 1, Bad numeric input format '\N'
>

Try:

    COPY acct FROM '/home/megasys/acct.dmp.new' USING DELIMITERS '\t' WITH NULL AS '\\N';

eric



pgsql-novice by date:

Previous
From: "Nikh Nath"
Date:
Subject: Unable to use COPY..FROM with NULL numeric fields
Next
From: "Nikh Nath"
Date:
Subject: Re: Unable to use COPY..FROM with NULL numeric fields